<div id="left-col">
    <?php $this->renderPartial('_side',array(

    ));?>
</div>
<div id="right-col">

    <div class="wrap">
        <div class="container">

            
            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;" id="alsoviewing"></span></div>
            <div class="inside">
             
                <?php $this->renderPartial('_view',array(
                    'model'=>$model
                ));?>
                <?php $this->renderPartial('_tab',array(
                    'model'=>$model,
                ));?>
                
                <br/>
                <div class="form">
                <?php $form=$this->beginWidget('CActiveForm', array(
                        'id'=>'inventory-form',
                        'enableAjaxValidation'=>false,
                        'htmlOptions'=>array(
                                'enctype'=>'multipart/form-data'
                            )
                )); ?>

                        <p class="note">Fields with <span class="required">*</span> are required.</p>
                        <?php echo $form->errorSummary($model); ?>
                        <?php echo $form->hiddenField($model,'partno');?>
                        <div class="row">
                                <?php echo $form->labelEx($model,'mfg'); ?>
                                <?php echo $form->dropDownList($model,'mfg',Mfg::model()->getList()); ?>
                                <?php echo $form->error($model,'mfg'); ?>
                        </div>
                        <div class="row">
                                <?php echo $form->labelEx($model,'model'); ?>
                                <?php echo $form->textField($model,'model',array('size'=>30,'maxlength'=>30)); ?>
                                <?php echo $form->error($model,'model'); ?>
                        </div>

                        <div class="row">
                                <?php echo $form->labelEx($model,'equipmenttype'); ?>
                                <?php echo $form->dropDownList($model,'equipmenttype',  Equipmenttype::model()->getList()); ?>
                                <?php echo $form->error($model,'equipmenttype'); ?>
                        </div>

                        <div class="row">
                                <?php echo $form->labelEx($model,'vendor'); ?>
                                <?php echo $form->dropDownList($model,'vendor',  $model->getVendorList()); ?>
                                <?php echo $form->error($model,'vendor'); ?>
                        </div>

                        <div class="row">
                                <?php echo $form->labelEx($model,'wamonths'); ?>
                                <?php echo $form->textField($model,'wamonths'); ?>
                                <?php echo $form->error($model,'wamonths'); ?>
                        </div>
                        <div class="row_buttons">
                            <?php echo CHtml::submitButton('Save');?>
                        </div>
                <?php $this->endWidget()?>
                </div>
                
            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('/copyright'); ?>
</div> <!-- left-col -->
